<include file="Common@Backend/header" />
    <!-- page heading start-->
    <div class="page-heading">
        <h3>
            {$breadcrumb.A}
        </h3>
        <ul class="breadcrumb">
            <li>
                <a href="#">{$breadcrumb.M}</a>
            </li>
            <li>
                <a href="#">{$breadcrumb.C}</a>
            </li>
            <li class="active"> {$breadcrumb.A}  </li>
        </ul>
    </div>
    <!-- page heading end-->
    
    <!--body wrapper start-->
    <div class="wrapper">
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
                    <header class="panel-heading">
                        编辑{$formTitle}
                    </header>
                    <div class="panel-body">
                        <form role="form" action="{$action}" method="post">
                            <input type="hidden" name="id" class="form-control" id="id"  value="{$node.id}" />
                            <div class="form-group">
                                <label for="name">{$formTitle}</label>
                                <input type="text" name="name" class="form-control" id="name" placeholder="输入{$formTitle}" value="{$node.name}" />
                            </div>
                            <div class="form-group">
                                <label for="title">名称</label>
                                <input type="text" name="title" class="form-control" id="title" placeholder="输入{$formTitle}中文名" value="{$node.title}"/>
                            </div>
                            <div class="form-group">
                                <label for="status">状态</label>
                                <select class="form-control m-bot15" id="status" name="status">
                                <if condition="$node.status eq 1">
                                    <option value="1" selected="selected">启用</option>
                                    <option value="0">关闭</option>
                                <else />
                                    <option value="1">启用</option>
                                    <option value="0" selected="selected">关闭</option>
                                </if>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="type">类型</label>
                                <select class="form-control m-bot15" id="type" name="type">
                                <if condition="$node.type eq 1">
                                    <option value="0">页面</option>
                                    <option value="1" selected="selected">动作</option>
                                <else />
                                    <option value="0" selected="selected">页面</option>
                                    <option value="1">动作</option>
                                </if>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="sort">排序</label>
                                <input type="text" name="sort" class="form-control" id="sort" placeholder="输入排序值" value="{$node.sort}" />
                            </div>
                            <div class="form-group">
                                <label for="remark">备注</label>
                                <textarea class="form-control" rows="5" name="remark" id="remark">{$node.remark}</textarea>
                            </div>
                            <button type="submit" class="btn btn-primary">保存</button>
                            <a href="{$cancel}" class="btn btn-primary">取消</a>
                        </form>

                    </div>
                </section>
            </div>
        </div>
    </div>
    <!--body wrapper end-->
<include file="Common@Backend/footer" />